package com.gitee.zhengjiasen.dp.state.demo2;

/**
 * 奖品领完状态
 */
public class DispenseOutState extends State {

    private Activity activity;

    // 传入一个Context对象
    public DispenseOutState(Activity activity) {
        this.activity = activity;
    }


    @Override
    void deduceMoney() {
        System.out.println("奖品已经发完, 不能扣除积分.");
    }

    @Override
    boolean raffle() {
        System.out.println("奖品已经发完, 不能扣除抽奖.");
        return false;
    }

    @Override
    void dispensePrize() {
        System.out.println("奖品已经发完, 不能发放奖品.");
    }
}
